package com.atlin.project.service;


import com.atlin.project.model.domain.SysAnnouncement;
import com.atlin.project.model.dto.sysAnnouncement.SysAnnouncementQueryRequest;
import com.atlin.project.model.vo.sysAnnouncement.SysAnnouncementVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * @author atlin
 * @description 针对表【sys_announcement(系统通知表)】的数据库操作Service
 * @createDate 2024-11-19 20:59:02
 */
public interface SysAnnouncementService extends IService<SysAnnouncement> {

    void valid(SysAnnouncement sysAnnouncement, boolean add);

    /**
     * 获取封装
     *
     * @param sysAnnouncement
     * @param request
     * @return
     */
    SysAnnouncementVO getSysAnnouncementVO(SysAnnouncement sysAnnouncement, HttpServletRequest request);


    /**
     * 获取查询条件
     *
     * @param questionQueryRequest
     * @return
     */
    QueryWrapper<SysAnnouncement> getQueryWrapper(SysAnnouncementQueryRequest questionQueryRequest);

    /**
     * 分页获取封装
     *
     * @param questionPage
     * @param request
     * @return
     */
    Page<SysAnnouncementVO> getSysAnnouncementVOPage(Page<SysAnnouncement> questionPage, HttpServletRequest request);

}
